package com.zgjkhis.modules.charges.service.dto;

import com.zgjkhis.modules.charges.domain.Logistics;
import com.zgjkhis.modules.charges.domain.LogisticsRoute;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author yxl
 * @Description
 * @Date 2021/7/20 13:46
 **/
@Data
@NoArgsConstructor
public class LogisticsRouteDto {

    @ApiModelProperty(value = "处方单号")
    private String orderNo;

    @ApiModelProperty(value = "业务订单号")
    private String bspOrderNo;

    @ApiModelProperty(value = "顺丰单号")
    private String mailNo;

    @ApiModelProperty(value = "物流信息")
    private List<LogisticsRoute> routes;

    public LogisticsRouteDto(Logistics logistics, List<LogisticsRoute> routes) {
        this.routes = routes;
        this.orderNo = logistics.getOrderNo();
        this.bspOrderNo = logistics.getBspOrderNo();
        this.mailNo = logistics.getMailNo();
    }

}
